package it.antonio.ilpizze.func.core;

import it.antonio.ilpizze.func.Worker;


public abstract class Workers extends Orders implements Core {
	
	@Override
	public final void mustImplementWorkers() {
	}
	
	public static Worker<Object> println(){
		return new Worker<Object>() {
			@Override public void on(Object elem) {System.out.println(elem);}
		};
	}
	
	public static Worker<Object> print(){
		return new Worker<Object>() {
			@Override public void on(Object elem) {System.out.print(elem);}
		};
	}
	
	public static Worker<Object> printNewLine(){
		return new Worker<Object>() {
			@Override public void on(Object elem) {System.out.println();}
		};
	}
}
